import { request } from "./request";

// 获取用户信息
export function getuserlist(name,page) {
  return request({
    url: "/user/getUser",
    params: {
      name,
      page,
    },
  });
}

//修改用户信息
export function edituserlist(data) {
  return request({
    method: "post",
    url: "/user/edit",
    data,
  });
}

//删除用户信息
export function deletduserlist(id) {
  return request({
    url: "/user/del",
    params: {
      id,
    },
  });
}

//新增用户信息
export function adduserlist(data) {
  return request({
    method: "post",
    url: "/user/add",
    data,
  });
}
